module.exports = app => {
    const { router, controller } = app;
    router.get('/', controller.home.index);
    router.get('/news', controller.news.list);
    router.get('/query', controller.home.query)
    router.get('/params/:id/:name', controller.home.params)
    router.post('/postdata', controller.home.postdata)
    //router.all('/postdata', controller.home.postdata)
    router.get('/test-service', controller.home.testService)
}